sched_rt: implement the .free_pdata hook
authorDario Faggioli <dario.faggioli@citrix.com>
Tue, 17 Mar 2015 14:11:05 +0000 (15:11 +0100)
committerJan Beulich <jbeulich@suse.com>
Tue, 17 Mar 2015 14:11:05 +0000 (15:11 +0100)
commit3c1eee047296bfe968ca1b62463d7eae698ed697
treeabdeaf05f3bb455fecfb67d8ac8a9718fc424576
parent319442762f6438188105282c71648b460e61a80a
sched_rt: implement the .free_pdata hook

which is called by cpu_schedule_down(), and is necessary
for resetting the spinlock pointers in schedule_data from
the RTDS global runqueue lock, back to the default _lock
fields in the struct.

Not doing so causes Xen to explode, e.g., when removing
pCPUs from an RTDS cpupool and assigning them to another
one.

Signed-off-by: Dario Faggioli <dario.faggioli@citrix.com>
Reviewed-by: Meng Xu <mengxu@cis.upenn.edu>
Reviewed-by: George Dunlap <george.dunlap@eu.citrix.com>
xen/common/sched_rt.c